#include<iostream>
using namespace std;
int main(){
    int n;
    while (cin>>n)
    {
        int a[100];
        int sum=1;
        for (int i=0;i<n;i++){
            cin>>a[i];
            if(a[i]%2==1){
                sum*=a[i];
            }
        }
        cout<<sum<<endl;
    }
    
}
